<%--
  Created by IntelliJ IDEA.
  User: chris
  Date: 17/5/5
  Time: 下午12:01
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>
    <title>导入数据列表</title>
    <script type="text/javascript">

        function doUpload() {
            if(checkData()) {
                var formData = new FormData($("#uploadForm")[0]);
                $.ajax({
                    url: '<%=path %>/laborPriceImport/upload',
                    type: 'POST',
                    data: formData,
                    dataType:"text",
                    async: false,
                    cache: false,
                    contentType: false,
                    processData: false,
                    success: function (returndata) {
                        if (returndata = 'success')
                        alert('导入成功');
                    },
                    error: function (returndata) {
                        alert('导入excel出错！');
                    }
                });
            }
            }



    </script>
</head>
<body>
<legend class='hyc-legend'>
    <span>劳务价格导入</span>
</legend>

<div class="row hyc-query-row">
    <div class="col-md-1 text-right top7">第一步</div>
</div>
<div class="row hyc-query-row">
    <div class="col-md-4 text-right top7">下载价格导入模板，批量导入价格调整信息</div>
    <div class="col-md-1">
        <div class="form-group text-left">
            <div class="btn btn-default btn-sm btn-warning" ng-click="loadData('query')">模板下载</div>&nbsp;&nbsp;&nbsp;
            <!--<a href="/download/excel">模版下载</a>-->
        </div>
    </div>
</div>
<div class="row hyc-query-row">
    <div class="col-md-1 text-right top7">第二步</div>
</div>
<div class="row hyc-query-row">
    <div class="col-md-4 text-right top7">上传填写好的价格调整信息表</div>
    <!--<div class="col-md-1">-->
    <!--<div class="form-group text-left">-->
    <!--<input type="file" data-ng-model="file" />-->
    <!--</div>-->
    <!--</div>-->
</div>
<table class="table table-bordered" style="margin-top: 10px;">
    <tr>
        <th class="text-center">线路名称</th>
        <th class="text-center">起点省</th>
        <th class="text-center">起运地</th>
        <th class="text-center">目的省</th>
        <th class="text-center">目的地</th>
        <th class="text-center">公里数</th>
        <th class="text-center">劳务价</th>
        <th class="text-center">生效日期</th>
        <th class="text-center">检查结果</th>
        <th class="text-center">说明</th>
        <th class="text-center">导入结果</th>
        <th class="text-center">操作</th>
    </tr>
    <tr ng-repeat="item in routeFreightList track by $index" ng-if="routeFreightList.length > 0">
        <td class="text-left">{{item.routeName}}</td>
        <td class="text-left">{{item.oProvinceName}}</td>
        <td class="text-left">{{item.oTag}}</td>
        <td class="text-left">{{item.dProvinceName}}</td>
        <td class="text-left">{{item.dTag}}</td>
        <td class="text-center">{{item.currentValue}}</td>
        <td class="text-center">{{item.effectiveDate | limitTo:10}}</td>
        <td class="text-center">{{item.invalidDate | limitTo:10}}</td>
        <td class="text-center">
            <a href="javascript:;" ng-click="showUpdateDlg(item)" ng-hide="item.isLock">修改</a>&nbsp;&nbsp;
            <a href="javascript:;" ng-click="del(item)" ng-hide="item.isLock">删除</a>
        </td>
    </tr>
    <tr ng-if="routeFreightList.length <= 0">
        <td class="text-center" colspan="9">暂无符合条件数据</td>
    </tr>
</table>
</body>
</html>
